package com.ruoyi.common.core.domain.permission.vo.permission;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.Set;

/**
 * The type Permission assign role data scope req vo.
 */
@Data
public class PermissionAssignRoleDataScopeReqVO {

//    @Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "角色编号不能为空")
    private Long roleId;

//    @Schema(description = "数据范围，参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "数据范围不能为空")
//    TODO 这里要多一个枚举校验
    private Integer dataScope;

    private Set<String> dataScopeDeptIds = Collections.emptySet(); // 兜底

    private String dataSetIds;

}
